]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Use navigate_focus() to keep focus after editing app folder title
authorsorelz <sorelz.zen498@passinbox.com>
Mon, 1 Jul 2024 23:52:33 +0000 (19:52 -0400)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 3 Aug 2024 18:04:29 +0000 (20:04 +0200)
The AppFolderDialog would lose keyboard focus after editing the title
(likely due to the folder entry grabbing key focus). This commit adds
navigate_focus() to _showFolderLabel() to send key focus back to the
dialog's elements after editing the title.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3338>
(cherry picked from commit a04b35b569e9e5c6237dd6c82bbdfa253d6bd4a3)

js/ui/appDisplay.js

index a2006eea7794a1b2b129e8c3d22e013b7d2fbd38..7ffec7b700f00b73e976f0ccd9e6dc9f7fdf1584 100644 (file)
@@ -2665,6 +2665,7 @@ export const AppFolderDialog = GObject.registerClass({
 
         this._maybeUpdateFolderName();
         this._switchActor(this._entry, this._folderNameLabel);
+        this.navigate_focus(this, St.DirectionType.TAB_FORWARD, false);
     }
 
     _showFolderEntry() {